from rest_framework.serializers import ModelSerializer
from .models import *
from rest_framework import serializers

class departmentSer(ModelSerializer):
    class Meta:
        model=department
        fields='__all__'

class UserSer(ModelSerializer):
    dep=department
    class Meta:
        model=User
        fields='__all__'

class Bcateser(ModelSerializer):
    class Meta:
        model=Bcate
        fields='__all__'

class Bookser(ModelSerializer):
    cate=Bcate
    class Meta:
        model=Book
        fields='__all__'
